import Vue from "vue";
import Vuex from "vuex"
import { getProducts } from "./api/shop"
Vue.use(Vuex)
let store = new Vuex.Store({
    state: {
        products: getProducts() //放置数据
    }
})


export default store;